import xcRequest from '@/service/index.js'

export function getNavRequest() {
  return xcRequest.get({
    url: '/nav/getAllNav.php'
  })
}

export function addNavRequest(params) {
  return xcRequest.get({
    url: 'nav/addNav.php',
    params
  })
}
export function deteleNavRequest(params) {
  return xcRequest.get({
    url: 'nav/delNav.php',
    params
  })
}
export function editNavRequest(params) {
  return xcRequest.get({
    url: 'nav/updateNav.php',
    params
  })
}
export function getRolesNavRequest(params) {
  return xcRequest.get({
    url: 'nav/getNavByRoleList.php',
    params
  })
}
